<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<form action="index.php?top=page&option=com_frcenter" method="post" name="adminForm" id="adminForm">
<!-- LEFT -->
 <?php echo $this->loadTemplate('search','default') ?>
 <!-- END LEFT -->
 
 <!-- CONTENT -->
 <div id="jm-content">
    <div class="cc title">
        <div class="id"><?php echo $this->info_ocba->OCBA_CODE; ?></div>
        <div class="cc-title">
            <p class="top"><?php echo $this->info_ocba->OCBA_KANA; ?></p>
            <p class="bot"><?php echo $this->info_ocba->OCBA_NAME; ?><span class="float-right">【<?php echo $this->info_ocba->OCBA_SHOR; ?>】</span></p>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="menu-cc">
        <ul id="nav">
        
        <?php 
            foreach(bgData::getMenuDetailCenter() as $key=>$item){
                $acctive = 'normal';
                if(JRequest::getVar('task') == $key){
                    $acctive = 'current';
                }
         ?>
            <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frcenter&task=<?php echo $key; ?>&id=<?php echo $this->info_ocba->OCBA_CODE; ?>"><?php echo $item; ?></a></li>
          <?php } ?>
            
        </ul>
    </div>
    
    <div id="">
    <h3 class="h_title">艇庫<span class="right">更新日: <?php if($this->row->DOCK_DATE!='0000-00-00 00:00:00' && $this->row->DOCK_DATE!=null) echo HelperBG::F_GetDate_JP($this->row->DOCK_DATE); ?> </span></h3>
    <br />
    <div class="content" >

    <?php
        if($this->row->DOCK_CODE != null ){
    ?>
        <table cellspacing="0" cellpadding="0" width="700px" border=0>
                <table cellspacing="0" cellpadding="0" width="700px" border=0>
                    <tbody>
                        <tr>
                            <td style="width: 122px;" ><label class="title_">基本データ</label></td>
                            <td style="width: 128px;">【郵便番号】</td>
                            <td colspan="2"><?php if($this->row->DOCK_POST!=null) echo '〒'.$this->row->DOCK_POST; ?></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【住所】</td>
                            <td colspan="2">
                                <?php echo $this->row->DOCK_ADD1; ?>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【TEL/FAX】</td>
                            <td>TEL：<?php echo $this->row->DOCK_TEL; ?></td>
                            <td>FAX：<?php echo $this->row->DOCK_FAX; ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【開設日】</td>
                            <td colspan="2"><?php if($this->row->DOCK_SDATE!='0000-00-00 00:00:00' && $this->row->DOCK_SDATE!=null ) echo HelperBG::F_GetDate_JP($this->row->DOCK_SDATE); ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【譲渡日】</td>
                            <td colspan="2"><?php if($this->row->DOCK_TDATE!='0000-00-00 00:00:00' && $this->row->DOCK_TDATE!=null ) echo HelperBG::F_GetDate_JP($this->row->DOCK_TDATE); ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【運営委託業者】</td>
                            <td colspan="2"><?php echo $this->row->DOCK_ADMN; ?></td>  
                        </tr>
                        <tr>
                            <td></td>
                            <td>【開館期間】</td>
                            <td colspan="2"><?php echo $this->row->DOCK_TERM; ?></td>   
                        </tr>
                        <tr>
                            <td></td>
                            <td>【艇庫種別】</td>
                            <td colspan="2"><?php echo $this->row->DOCM_NAME; ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【常勤者有無】</td>
                            <td colspan="2"><?php if($this->row->DOCK_FTMF == 0){ echo "非常勤"; }elseif($this->row->DOCK_FTMF == 1){ echo "常勤"; } ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【利用予約の可否】</td>
                            <td colspan="2"><?php if($this->row->DOCK_RSVF == 0){ echo "否"; }elseif($this->row->DOCK_RSVF == 1){ echo "可"; } ?></td>
                        </tr>
                        
                    </tbody>
                </table>
                <tr >
                    <td colspan="4"><hr /></td>
                </tr>
                <table cellspacing="0" cellpadding="0" width="100%" border=0>
                    <tbody>
                        <tr>
                            <td style="width: 118px;" ><label class="title_">設備</label></td>
                            <td class="td_medium">【施設】</td>
                            <!-- show Facility -->
                            <?php
                                 $toy=$this->row->DOCK_TOYK;
                                 if ($toy==1)
                                    echo '<td class="td_medium">○ トイレ</td>';
                                 else if ($toy==2)
                                    echo '<td class="td_medium">△ トイレ</td>';
                                 else if ($toy==0) 
                                    echo '<td class="td_medium">× トイレ</td>';
                             ?>
                   
                            <?php
                                 $toy=$this->row->DOCK_SHWK;
                                 
                                 if ($toy==1)
                                    echo '<td class="td_medium">○ シャワー</td>';
                                 else if ($toy==2)
                                    echo '<td class="td_medium">△ シャワー</td>';
                                else if ($toy==0)
                                    echo '<td class="td_medium">× シャワー</td>';
                             ?>
                        
                            <?php
                                 $toy=$this->row->DOCK_SHHK;
                                
                                 if ($toy==1)
                                    echo '<td class="td_medium">○ 温水シャワー</td>';
                                 else if ($toy==2)
                                    echo '<td class="td_medium">△ 温水シャワー</td>';
                                 else if ($toy==0)
                                    echo '<td class="td_medium">× 温水シャワー</td>';
                             ?>
                            
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <?php
                                 $toy=$this->row->DOCK_CHAK;
                                
                                 if ($toy==1)
                                    echo '<td class="td_medium">○ 更衣室</td>';
                                 else if ($toy==2)
                                    echo '<td class="td_medium">△ 更衣室</td>';
                                 else if ($toy==0)
                                    echo '<td class="td_medium">× 更衣室</td>';
                             ?>
                            
                            <?php
                                 $toy=$this->row->DOCK_PAKK;
                                
                                 if ($toy==1)
                                    echo '<td class="td_medium">○ 駐車スペース</td>';
                                 else if ($toy==2)
                                    echo '<td class="td_medium">△ 駐車スペース</td>';
                                 else if ($toy==0)
                                    echo '<td class="td_medium">× 駐車スペース</td>';
                             ?>                                            
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td colspan="3" style="color: red;">（○･･･有り、×･･･無し、△･･･近隣に有り）</td>
                        </tr>
                        <tr >   
                            <td></td>
                            <td colspan="5"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【バリアフリー】</td>
                            <?php 
                                foreach($this->tbdo as $key=>$value){
                                    $str='□';
                            ?>
                                <td class="tb_5c">
                                
                                <?php if(($this->row->DOCK_TBDO_CODE_LIST)!= null){
                                            $ar=explode(',',$this->row->DOCK_TBDO_CODE_LIST);
                                            foreach ($ar as $vl)
                                                {
                                                   if($value->TBDO_CODE == $vl){ $str='■'; break;};
                                                } 
                                        }
                                    ?>
                              
                                <?php echo $str.$value->TBDO_NAME; $str='□'; ?>
                                </td>
                            <?php
                                   
                                }
                                
                        
                            ?> 
                          </tr>
                                                                           
                    </tbody>
                </table>    
                <tr>
                    <td colspan="4"><hr /></td>
                </tr>
                    <table cellspacing="0" cellpadding="0" width="100%" border=0>
                    <tbody>
                        <tr>
                            <td style="width: 122px;" ><label class="title_">水面</label></td>
                            <td class="td_medium">【水面区分】</td>
                            <td class="td_small" colspan="2"><?php echo $this->row->WATM_NAME; ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>【利用水面名】</td>
                            <td>水面名：</td>                                             
                            <td><?php echo $this->row->DOCK_WNAME; ?></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td>広域水面名：</td>                                             
                            <td><?php echo $this->row->DOCK_WNAMEW; ?></td>
                            
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td>備考：</td>
                            <td ><?php echo $this->row->DOCK_WNOTE; ?></td>
                        
                            
                        </tr>
                        <tr>
                            <td></td>
                            <td>【水際状況】</td>
                            <td><?php echo $this->row->DOWM_NAME; ?></td>
                            <td></td>

                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="3"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="top">【画像】</td>
                            <td class="top" width="132px" >艇庫：</td>
                            
                            <?php
                            if(!empty($this->row->DOCK_IMGD)){
                                $path = "uploads/images/com_pgb/".$this->row->DOCK_IMGD;
                                if(file_exists($path)){ 
                                    echo '<td><img src="'.$path.'" width="100%" /></td>';
                                }else{
                                    echo '<td><img src="components/com_frcenter/public/images/nopicture.gif" width="100%"/></td>';
                                }
                            }else{
                                echo '<td><img src="components/com_frcenter/public/images/nopicture.gif" width="100%" /></td>';
                            }
                            ?>
                                                        
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td colspan="2"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td class="top" width="105px">水際：</td>
                            <?php
                            if(!empty($this->row->DOCK_IMGW)){
                                $path = "uploads/images/com_pgb/".$this->row->DOCK_IMGW;
                                if(file_exists($path)){ 
                                    echo '<td><img src="'.$path.'" width="100%" /></td>';
                                }else{
                                    echo '<td><img src="components/com_frcenter/public/images/nopicture.gif" width="100%" /></td>';
                                }
                            }else{
                                echo '<td><img src="components/com_frcenter/public/images/nopicture.gif"  width="100%"/></td>';
                            }
                            ?>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td colspan="2"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td class="top" width="105px" height="180px">水面：</td>
                            <?php
                            if(!empty($this->row->DOCK_IMGS)){
                                $path = "uploads/images/com_pgb/".$this->row->DOCK_IMGS;
                                if(file_exists($path)){ 
                                    echo '<td width="350px"><img src="'.$path.'" width="100%" /></td>';
                                }else{
                                    echo '<td width="350px"><img src="components/com_frcenter/public/images/nopicture.gif" width="100%" /></td>';
                                }
                                }else{
                                echo '<td width="350px"><img src="components/com_frcenter/public/images/nopicture.gif" width="100%" /></td>';
                            }
                            ?>
                            
                        </tr>                                                    
                    </tbody>
                </table>
                <tr>
                    <td colspan="4"><hr /></td>
                </tr>
                 <table cellspacing="0" cellpadding="0" width="100%" border=0>
                    <tbody>
                        <tr>
                            <td style="width: 122px;" ><label class="title_">その他</label></td>
                            <td class="td_medium">【料金】</td>
                            <td class="td_small">町内大人： </td>
                            <td class="td_small"><?php if($this->row->DOCK_CIAD != null){ echo $this->row->DOCK_CIAD."円"; } ?></td>
                            <td class="td_medium">町内子供： </td>
                            <td style="width: 125px;" ><?php if($this->row->DOCK_CICI != null){ echo $this->row->DOCK_CICI."円"; } ?></td>   
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td>町外大人： </td>
                            <td><?php if($this->row->DOCK_COAD != null){ echo $this->row->DOCK_COAD."円"; } ?></td>
                            <td>町外子供： </td>
                            <td><?php if($this->row->DOCK_CICI != null){ echo $this->row->DOCK_COCI."円"; } ?></td>                                            
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td style="vertical-align: top;">備考： </td>
                            <td colspan="3"><?php echo $this->row->DOCK_CNOT; ?></td>
                        </tr>
                        <tr >   
                            <td></td>
                            <td colspan="5"><hr /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="vertical-align: top;">【備考】</td>
                            <td colspan="4"><?php echo HelperBGtop::newline2br($this->row->DOCK_NOTE); ?></td>
                        </tr>                                                    
                    </tbody>
                </table>   
               
            </table>
    <?php
        }else{
            echo '<p align="center" >データは見つかりませんでした</p>';
         }
    ?>
    </div>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="boxchecked" value="0"/>
 </div>
    
 </div>
 <!-- END CONTENT -->
 </form>
                           